//
//  HXFoodClassTCell.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/5.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXFoodClassTCell.h"
#import "HXFoodClassModel.h"
#import "HX_Macro.h"
@implementation HXFoodClassTCell
- (void)setFoodClassModel:(HXFoodClassModel *)foodClassModel {
    [self.imagePlayer sd_setImageWithURL:[NSURL URLWithString:foodClassModel.image]];
    self.detailLabel.text = foodClassModel.series_name;
    self.updatePlayer.text = [NSString stringWithFormat:@"更新至%ld集", foodClassModel.episode];
    self.personCount.text = [NSString stringWithFormat:@"上课人数%ld", foodClassModel.play];
    self.name.text = foodClassModel.album;
    [self.personHeader sd_setImageWithURL:[NSURL URLWithString:foodClassModel.album_logo]];
    self.personHeader.layer.masksToBounds = YES;
    self.personHeader.layer.cornerRadius = 24.5;
    self.personHeader.contentMode = UIViewContentModeScaleAspectFill;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
